//
//  YGExpertsMsgCollectionViewCell.m
//  yuanshangyiliao
//
//  Created by icholab on 2021/3/23.
//

#import "YGExpertsMsgCollectionViewCell.h"
#import "YGExpertsMsgVIew.h"
@interface YGExpertsMsgCollectionViewCell()
@property (nonatomic, strong) YGExpertsMsgVIew *expertsMsgView;
@end

@implementation YGExpertsMsgCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self initView];
    }
    return self;
}

- (void)initView{
    [self addSubview:self.expertsMsgView];
    
    [self.expertsMsgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(self);
    }];
}

-(void)configureData:(YGExpertsModel *)model{
    if (model) {
        [self.expertsMsgView fixexpertsMsgWith:model];
    }
}

- (YGExpertsMsgVIew *)expertsMsgView{
    if (!_expertsMsgView) {
        _expertsMsgView = [[YGExpertsMsgVIew alloc]init];
        _expertsMsgView.backgroundColor=UIColorFromRGB(0x37C8D7);
        
    }
    return _expertsMsgView;
}

@end
